package com.medusa.aps.business.modules.board.model.output;

import com.alibaba.fastjson2.annotation.JSONField;
import com.medusa.aps.business.model.enums.SchedulingStatusEnum;
import com.medusa.aps.business.modules.board.model.ProcessStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>车间生产详情VO</p>
 * @author An.Yan
 */
@Data
@Accessors(chain = true)
@Schema(description = "车间生产详情")
public class WorkshopProductionDetailVO implements Serializable {

    private static final long serialVersionUID = 8583291447136254404L;

    private final LocalDateTime NOW = LocalDateTime.now();

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Integer id;

    /**
     * 物料编码
     */
    @Schema(description = "物料编码")
    private String materialCode;

    /**
     * 物料名称
     */
    @Schema(description = "物料名称")
    private String materialName;

    /**
     * 订单号
     */
    @Schema(description = "订单号")
    private String orderNumber;

    /**
     * 设备编码
     */
    @Schema(description = "设备编码")
    private String equipmentCode;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String equipmentName;

    /**
     * 工序编码
     */
    @Schema(description = "工序编码")
    private String processCode;

    /**
     * 工序名称
     */
    @Schema(description = "工序名称")
    private String processName;

    /**
     * 计划加工状态
     */
    @Schema(description = "计划加工状态")
    private ProcessStatus plannedProcessingStatus;
    /**
     * 计划数量
     */
    @Schema(description = "计划数量")
    private BigDecimal plannedQuantity;

    /**
     * 计划开始时间
     */
    @Schema(description = "计划开始时间")
    private LocalDateTime plannedStartTime;

    /**
     * 计划结束时间
     */
    @Schema(description = "计划结束时间")
    private LocalDateTime plannedEndTime;

    /**
     * 订单状态
     */
    @Schema(description = "订单状态")
    private SchedulingStatusEnum orderStatus;

    /**
     * 具体时间
     */
    //@Schema(description = "具体时间")
    @JSONField(serialize = false)
    private String specificTime;
}
